package com.platform.coreentity.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * describe:菜单表
 *
 * @author rainly
 * @date 2019/07/23
 * @time 15:08
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name = "sys_menu", schema = "platform")
public class SysMenuEntity {

    @Id
    @Column(length = 50, name = "menuid")
    private String menuid;

    /**
     * 菜单名称
     */
    @Column(length = 50, name = "menuname",columnDefinition = "varchar(50) COMMENT '菜单名称'")
    private String menuname;

    /**
     * 菜单路径
     */
    @Column(length = 200, name = "menu_url",columnDefinition = "varchar(200) COMMENT '菜单路径'")
    private String menuUrl;

    /**
     * 父级
     */
    @Column(length = 50, name = "parentid",columnDefinition = "varchar(50) COMMENT '父级'")
    private String parentid;

    /**
     * 层级
     */
    @Column(length = 500, name = "parentids",columnDefinition = "varchar(500) COMMENT '层级'")
    private String parentids;

    /**
     * 排序顺序
     */
    @Column(length = 3, name = "order_num",columnDefinition = "varchar(500) COMMENT '排序顺序'")
    private int orderNum;
}
